Import mojo
Import diddy
Import model


Class StatusPanel
Field text:String
Field x:Float
Field y:Float
Field width:Int
Field height:Int
Field img:GameImage

Field collectStar:GameImage


	Method New(x, y, width, height)
	Self.x = x
	Self.y=y
	Self.width=width
	Self.height=height

	collectStar=game.images.Find("collectStar")
	End
	
		Method Draw:Void(offsetx#=0, offsety#=0)

			DrawText ( "WORLD 1", width-120, y+20)	
			
			collectStar.Draw(20, y+20)
			DrawText ( "X "+_model.stars+"/"+_model.maxStars, x+40, y+20)
			DrawText ("SCORE: "+_model.score, width/2, y+20, 0.5, 0)
				'	PopMatrix
		End
		

End




